#include <stdio.h>

int main(int argc, char *argv[]) {

    int m, p, n;
    scanf("%d %d %d", &m, &p, &n);
    int numa[m][p], numb[p][n], numc[m][n];
    int i, j, k;
    //第一个矩阵
    for (i = 0; i < m; i++)
    {
        for ( j = 0; j < p; j++)
        {
            scanf("%d", &numa[i][j]);
        }
    }
    //第二个矩阵
    for (i = 0; i < p; i++)
    {
        for ( j = 0; j < n; j++)
        {
            scanf("%d", &numb[i][j]);
        }
    }

    for (i = 0; i < m; i++)
    {
        for ( j = 0; j < n; j++)
        {
            numc[i][j] = 0;
            for (k = 0; k < p; k++)
            {
                numc[i][j] =numc[i][j]+numa[i][k] * numb[k][j];
            }
            printf("%d ", numc[i][j]);
        }
        printf("\n");
    }
    
    

    return 0;
}